package com.daou.smartpush.model.license;

import java.util.Date;

import com.daou.smartpush.domain.license.License;

public class LicenseModel {
    private Long id;
    private Long companySeq;
    private String hostId;
    private int maxDeviceCnt;
    private String unLimit;
    private Date expiredDate;
    private String pName;
    private String version;
    private String companyName;
    private String filePath;
    private String error_msg;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public Long getCompanySeq() {
        return companySeq;
    }

    public void setCompanySeq(Long companySeq) {
        this.companySeq = companySeq;
    }

    public String getHostId() {
        return hostId;
    }

    public void setHostId(String hostId) {
        this.hostId = hostId;
    }

    public int getMaxDeviceCnt() {
        return maxDeviceCnt;
    }

    public void setMaxDeviceCnt(int maxDeviceCnt) {
        this.maxDeviceCnt = maxDeviceCnt;
    }

    public String getUnLimit() {
        return unLimit;
    }

    public void setUnLimit(String unLimit) {
        this.unLimit = unLimit;
    }

    public Date getExpiredDate() {
        return expiredDate;
    }

    public void setExpiredDate(Date expiredDate) {
        this.expiredDate = expiredDate;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getError_msg() {
        return error_msg;
    }

    public void setError_msg(String error_msg) {
        this.error_msg = error_msg;
    }

    public LicenseModel() {
        super();
    }

    public LicenseModel(License license) {
        super();
        this.companySeq = license.getCompany().getCompanySeq();
        this.hostId = license.getHostId();
        this.maxDeviceCnt = license.getMaxDeviceCnt();
        this.unLimit = license.getUnLimit();
        this.expiredDate = license.getExpiredDate();
        this.pName = license.getpName();
        this.version = license.getVersion();
        this.companyName = license.getCompany().getCompanyName();
    }
}
